/*
 * message_app_window_redraw_needed.cpp
 *
 *  Created on: 28 Oca 2012
 *      Author: root
 */

#include "message_activity_window_redraw_needed.h"
#include "../../application.h"

namespace androidplus {
namespace messaging{
namespace activity{

message_activity_window_redraw_needed::message_activity_window_redraw_needed() :message(MSG_ACTIVITY_WINDOW_REDRAW_NEEDED){


}

message_activity_window_redraw_needed::~message_activity_window_redraw_needed() {

}

void message_activity_window_redraw_needed::execute()
{
	LOGI("Activity Window ReDraw Neded");
		application::cur_app()->cur_activity()->threading_lock_mutex();
		application::cur_app()->cur_activity()->render();
		application::cur_app()->cur_activity()->rendering.is_rendered_finished=t_true;
		application::cur_app()->cur_activity()->threading_condition_broadcast();
		application::cur_app()->cur_activity()->threading_unlock_mutex();


}

}
}
} /* namespace androidplus */
